<?php if(!defined("PATH_HD"))exit;C("SHOW_NOTICE",false);?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
	<title>添加文章属性</title>
	<link type="text/css" rel="stylesheet" href="http://localhost/hb/easycms/admin/tpl/public/css/flag.css"/>
</head>
<body>
	<h2 class='top'>
		<a href="<?php echo U('addshow');?>">添加属性</a>
	</h2>
	<table class="table2">
        <thead>
            <tr>
                <th width="100">属性id(fid)</th>
                <th>属性名称</th>
                <th  width="300">操作</th>
            </tr>
        </thead>
        <tbody>
        <?php $hd["list"]["n"]["total"]=0;
if(!empty($data)):
$hd_list_total = count($data);
$hd_list_row = min($hd_list_total,1000);
$hd_list_row = floor($hd_list_row/1);
$hd_list_id=0;
$hd_list_start=1;
$hd_list_step=0;foreach($data as $hd_list_key =>$hd_list_value):
if($hd_list_start<1){$hd_list_start++;continue;}
if($hd_list_step %1!=0){$hd_list_step++;continue;}
$hd_list_step++;$hd["list"]["n"]["first"]=$hd_list_id==0?true:false;
$hd["list"]["n"]["last"]=$hd_list_id>=$hd_list_row-1?true:false;
$hd["list"]["n"]["index"]=$hd_list_id+1;
$n=$hd_list_value;?>

            <tr>
                <td><?php echo $n['fid'];?></td>
                <td>
                    <?php echo $n['flgname'];?>
                </td>
                <td>
                    <a href="<?php echo U('editshow',array('fid'=>$n['fid']));?>">编辑</a> |
                    <a href="" fid="<?php echo $n['fid'];?>" class="delcategory">删除</a>
                </td>
            </tr>
        <?php if($hd_list_id+1>=$hd_list_row){break;}
$hd_list_id++;
endforeach;
$hd["list"]["n"]["total"]=$hd_list_id+1;
endif;
?>
        </tbody>
    </table>
</body>
</html>